﻿@model tcms.Models.LoginModel
@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>
    <style type="text/css">
body {font: 14px/20px "Microsoft Yahei"; background: url(@Url.Content("~/Content/common/img/login-bg.jpg")) no-repeat fixed center;}
input, button {font: 14px/20px "Microsoft Yahei";}
.group { margin: 2px 0;}
.group label {width: 80px; float: left; text-align: right;}
.error { color: red; font-style: italic; }
.group input {margin-left: 5px; width: 160px;}
label.solo  { margin-left: 80px;}
input[type="submit"].solo { 
    margin: 10px auto; 
    display: block;
    background:#25A6E1;
	background:-moz-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
	background:-webkit-gradient(linear,left top,left bottom,color-stop(0%,#25A6E1),color-stop(100%,#188BC0));
	background:-webkit-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
	background:-o-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
	background:-ms-linear-gradient(top,#25A6E1 0%,#188BC0 100%);
	background:linear-gradient(top,#25A6E1 0%,#188BC0 100%);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#25A6E1',endColorstr='#188BC0',GradientType=0);
	padding:8px 13px;
	color:#fff;
	font-size:17px;
	border-radius:4px;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	border:1px solid #1A87B9
}

.center {
   width: 300px;
   height: 140px;
   position: absolute;
   left: 50%;
   top: 50%; 
   margin-left: -150px;
   margin-top: -80px;
   padding: 10px 0;
}
.input-validation-error {border: 1px solid #e80c4d;}
.field-validation-error {color: #e80c4d;}

	</style>
</head>
<body>
    <div class="center" style="background: #ccc;">
        @using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl }))
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true, "", new { @class = "error" })

            <div class="group">
                @Html.LabelFor(m => m.UserName)
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
            <div class="group">
                @Html.LabelFor(m => m.Password)
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>
            <label for="RememberMe" class="solo">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.DisplayNameFor(m => m.RememberMe)
            </label>
            <input class="solo" type="submit" value="登陆" />
        }
    </div>
    @Scripts.Render("~/bundles/js/jquery_validate")
</body>
</html>
